<template>
  <div id="app">
    <h1>{{ $store.state.name }}</h1>
    <img src="./assets/logo.png">
    <ul class="list_nav">
      <li>
        <router-link to="/" exact>首页</router-link>
      </li>
      <li>
        <router-link to="/parentA">父组件A</router-link>
      </li>
      <li>
        <router-link to="/parentB">父组件B</router-link>
      </li>
      <li>
        <router-link to="/parentC">父组件C</router-link>
      </li>
      <li>
        <router-link to="/parentD">父组件D</router-link>
      </li>
    </ul>
    <router-view/>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}

.active {
  color: aqua;
}

.list_nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

.list_nav li {
  padding: 0 20px;
  list-style-position: inside;
}
</style>
